﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using TinyForum.Infrastructure;
using TinyForum.Domain.Events;
using Apworks;

namespace TinyForum.Domain.Model
{
    public abstract class EventSourceAggregateRoot : AggregateRoot
    {
        protected virtual void Publish<TEvent>(TEvent @event)
            where TEvent : TinyForumDomainEvent
        {
            CommonUtils.PublishEvent(@event);
        }
    }
}
